home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-06-25 | 1.4 KB | 48 lines | [TEXT/GEOL] |
- Item 9751164 18-June-90 20:46PDT
-
- From: SCHMUCKER1 Schmucker, Kurt
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Keeping MPW and THINK Compat.
-
- Someone recently asked about the issues in maintaining MPW and Lightspeed
- Pascal compatibility for a given set of files. Here is one of the "gotchas":
-
- Lightspeed does not support the {$H±} options that are used so often in
- MacApp applications. While the beta version of the conversion utility that
- takes MPW MacApp source files and turns them into Lightspeed files had a
- compatability mode for the conversion, the final version does not (as far as I
- can determine). With this compatability mode on, MPW source lines like these:
-
- {$H-}
- SetPt(aPoint, SELF.fMyInt1, SELF.myInt2);
- {$H+}
-
- would be turned into ones like these:
-
- {$IFC UNDEFINED THINK_PASCAL}
- {$H-}
- {$ENDC}
- SetPt(aPoint, SELF.fMyInt1, SELF.myInt2);
- {$IFC UNDEFINED THINK_PASCAL}
- {$H+}
- {$ENDC}
-
- ( Admittedly, this is a little gross, but it at least compiled with both
- development environments.)
-
-
- HOWEVER, in the final conversion utility, there is no compatability mode,
- so these three lines become:
-
- SetPt(aPoint, SELF.fMyInt1, SELF.myInt2);
-
-
- That is, the unsupported compiler directives are simply removed. This
- makes going back to MPW a real pain.
-
-
- Kurt
-
-